package org.ww.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.ww.common.utils.PageUtils;
import org.ww.product.entity.AttrGroupEntity;
import org.ww.product.vo.AttrGroupRelationVo;
import org.ww.product.vo.AttrGroupWithAttrVo;
import org.ww.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author ww
 * @email ww@qq.com
 * @date 2024-01-05 13:25:18
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    /**
     * 根据分类id查询分组关联的属性
     * @param catelogId
     * @return
     */
    List<AttrGroupWithAttrVo> catelogWithattr(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId,Long catalogId);
}

